package com.cheng.service.impl;

import com.cheng.common.exception.CommonException;
import com.cheng.data.mapper.ExceptionMapper;
import com.cheng.data.vo.ExceptionVO;
import com.cheng.service.ExceptionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author: ChengJW
 * @date: 2021/11/13 10:15
 * @version: 1.0
 * @description: 异常日志信息表处理类
 */
@Service
public class ExceptionServiceImpl implements ExceptionService {

    private final static Logger log = LoggerFactory.getLogger(ExceptionServiceImpl.class);

    @Autowired
    private ExceptionMapper exceptionMapper;

    /**
    * @author: ChengJW
    * @params: [map]
    * @return: java.util.List<com.cheng.data.vo.ExceptionVO>
    * @date: 2021/11/13
    * @description: 查询系统异常日志信息
    */
    @Override
    public List<ExceptionVO> selectExceptionInfoList(Map<String, Object> map) throws CommonException {
        return exceptionMapper.selectExceptionInfoList(map);
    }
}
